package com.example.vueback.service;

import com.example.vueback.mapper.EmpMapper;
import com.example.vueback.model.Empinfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmpService {

    @Autowired
    private EmpMapper empMapper;
    public Empinfo getEmpinfoById(Integer id) {
        return empMapper.getEmpinfoById(id);
    }

    public void addEmpinfo(Empinfo empinfo) {
        empMapper.addEmpinfo(empinfo);
    }

    public void updateEmpinfo(Empinfo empinfo) {
        empMapper.updateEmpinfo(empinfo);
    }

    public List<Empinfo> getEmpinfoAll() {
        return empMapper.getEmpinfoAll();
    }

    public void delEmpinfoById(Integer id) {
        empMapper.delEmpinfoById(id);
    }

}
